package com.zhai.application.nodes;

import com.yomahub.liteflow.core.NodeComponent;
import com.zhai.application.flow.context.DemonContextParam;
import org.springframework.stereotype.Component;

@Component("d")
public class DCmp extends NodeComponent {

    @Override
    public void process() throws Exception {
        //获取上下文参数
        DemonContextParam param = this.getContextBean(DemonContextParam.class);

        System.out.println(param.toString());

        //执行D的业务方法

        System.out.println("============process D");
    }
}
